package com.zhonghui.wms.service.impl;

import com.zhonghui.wms.domain.WmsCargoOwner;
import com.zhonghui.wms.mapper.WmsCargoOwnerMapper;
import com.zhonghui.wms.service.IWmsCargoOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 智能仓储WMS-基础数据-货主Service业务层处理
 * 
 * @author zhonghui
 * @date 2022-06-04
 */
@Service
public class WmsCargoOwnerServiceImpl implements IWmsCargoOwnerService 
{
    @Autowired
    private WmsCargoOwnerMapper wmsCargoOwnerMapper;

    /**
     * 查询智能仓储WMS-基础数据-货主
     * 
     * @param id 智能仓储WMS-基础数据-货主主键
     * @return 智能仓储WMS-基础数据-货主
     */
    @Override
    public WmsCargoOwner selectWmsCargoOwnerById(Long id)
    {
        return wmsCargoOwnerMapper.selectWmsCargoOwnerById(id);
    }

    /**
     * 查询智能仓储WMS-基础数据-货主列表
     * 
     * @param wmsCargoOwner 智能仓储WMS-基础数据-货主
     * @return 智能仓储WMS-基础数据-货主
     */
    @Override
    public List<WmsCargoOwner> selectWmsCargoOwnerList(WmsCargoOwner wmsCargoOwner)
    {
        return wmsCargoOwnerMapper.selectWmsCargoOwnerList(wmsCargoOwner);
    }

    /**
     * 新增智能仓储WMS-基础数据-货主
     * 
     * @param wmsCargoOwner 智能仓储WMS-基础数据-货主
     * @return 结果
     */
    @Override
    public int insertWmsCargoOwner(WmsCargoOwner wmsCargoOwner)
    {
        return wmsCargoOwnerMapper.insertWmsCargoOwner(wmsCargoOwner);
    }

    /**
     * 修改智能仓储WMS-基础数据-货主
     * 
     * @param wmsCargoOwner 智能仓储WMS-基础数据-货主
     * @return 结果
     */
    @Override
    public int updateWmsCargoOwner(WmsCargoOwner wmsCargoOwner)
    {
        return wmsCargoOwnerMapper.updateWmsCargoOwner(wmsCargoOwner);
    }

    /**
     * 批量删除智能仓储WMS-基础数据-货主
     * 
     * @param ids 需要删除的智能仓储WMS-基础数据-货主主键
     * @return 结果
     */
    @Override
    public int deleteWmsCargoOwnerByIds(Long[] ids)
    {
        return wmsCargoOwnerMapper.deleteWmsCargoOwnerByIds(ids);
    }

    /**
     * 删除智能仓储WMS-基础数据-货主信息
     * 
     * @param id 智能仓储WMS-基础数据-货主主键
     * @return 结果
     */
    @Override
    public int deleteWmsCargoOwnerById(Long id)
    {
        return wmsCargoOwnerMapper.deleteWmsCargoOwnerById(id);
    }
}
